package com.zhonghui.common.eshopDto;

public class WechatUserDto {
    private String openid;  // store_customer
    private String unionId; // 统一ID
    private String routineOpenid;
    private String nickname;  // 昵称  eshop_user
    private String headimgurl; // 头部图片路径
    private Integer sex;  // 性别 gen_test
    private String city;  // 城市  收货人所在市  user_address
    private String language;
    private String province; // 省份 收货人所在省 user_address
    private String country;
    private Boolean subscribe; // 订阅
    private Long subscribeTime; // 订阅时间

    public static WechatUserDto.WechatUserDtoBuilder builder() {
        return new WechatUserDto.WechatUserDtoBuilder();
    }

    public String getOpenid() {
        return this.openid;
    }

    public String getUnionId() {
        return this.unionId;
    }

    public String getRoutineOpenid() {
        return this.routineOpenid;
    }

    public String getNickname() {
        return this.nickname;
    }

    public String getHeadimgurl() {
        return this.headimgurl;
    }

    public Integer getSex() {
        return this.sex;
    }

    public String getCity() {
        return this.city;
    }

    public String getLanguage() {
        return this.language;
    }

    public String getProvince() {
        return this.province;
    }

    public String getCountry() {
        return this.country;
    }

    public Boolean getSubscribe() {
        return this.subscribe;
    }

    public Long getSubscribeTime() {
        return this.subscribeTime;
    }

    public void setOpenid(final String openid) {
        this.openid = openid;
    }

    public void setUnionId(final String unionId) {
        this.unionId = unionId;
    }

    public void setRoutineOpenid(final String routineOpenid) {
        this.routineOpenid = routineOpenid;
    }

    public void setNickname(final String nickname) {
        this.nickname = nickname;
    }

    public void setHeadimgurl(final String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public void setSex(final Integer sex) {
        this.sex = sex;
    }

    public void setCity(final String city) {
        this.city = city;
    }

    public void setLanguage(final String language) {
        this.language = language;
    }

    public void setProvince(final String province) {
        this.province = province;
    }

    public void setCountry(final String country) {
        this.country = country;
    }

    public void setSubscribe(final Boolean subscribe) {
        this.subscribe = subscribe;
    }

    public void setSubscribeTime(final Long subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public WechatUserDto(final String openid, final String unionId, final String routineOpenid, final String nickname, final String headimgurl, final Integer sex, final String city, final String language, final String province, final String country, final Boolean subscribe, final Long subscribeTime) {
        this.openid = openid;
        this.unionId = unionId;
        this.routineOpenid = routineOpenid;
        this.nickname = nickname;
        this.headimgurl = headimgurl;
        this.sex = sex;
        this.city = city;
        this.language = language;
        this.province = province;
        this.country = country;
        this.subscribe = subscribe;
        this.subscribeTime = subscribeTime;
    }

    public WechatUserDto() {
    }

    public static class WechatUserDtoBuilder {
        private String openid;
        private String unionId;
        private String routineOpenid;
        private String nickname;
        private String headimgurl;
        private Integer sex;
        private String city;
        private String language;
        private String province;
        private String country;
        private Boolean subscribe;
        private Long subscribeTime;

        WechatUserDtoBuilder() {
        }

        public WechatUserDto.WechatUserDtoBuilder openid(final String openid) {
            this.openid = openid;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder unionId(final String unionId) {
            this.unionId = unionId;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder routineOpenid(final String routineOpenid) {
            this.routineOpenid = routineOpenid;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder nickname(final String nickname) {
            this.nickname = nickname;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder headimgurl(final String headimgurl) {
            this.headimgurl = headimgurl;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder sex(final Integer sex) {
            this.sex = sex;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder city(final String city) {
            this.city = city;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder language(final String language) {
            this.language = language;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder province(final String province) {
            this.province = province;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder country(final String country) {
            this.country = country;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder subscribe(final Boolean subscribe) {
            this.subscribe = subscribe;
            return this;
        }

        public WechatUserDto.WechatUserDtoBuilder subscribeTime(final Long subscribeTime) {
            this.subscribeTime = subscribeTime;
            return this;
        }

        public WechatUserDto build() {
            return new WechatUserDto(this.openid, this.unionId, this.routineOpenid, this.nickname, this.headimgurl, this.sex, this.city, this.language, this.province, this.country, this.subscribe, this.subscribeTime);
        }

        public String toString() {
            return "WechatUserDto.WechatUserDtoBuilder(openid=" + this.openid + ", unionId=" + this.unionId + ", routineOpenid=" + this.routineOpenid + ", nickname=" + this.nickname + ", headimgurl=" + this.headimgurl + ", sex=" + this.sex + ", city=" + this.city + ", language=" + this.language + ", province=" + this.province + ", country=" + this.country + ", subscribe=" + this.subscribe + ", subscribeTime=" + this.subscribeTime + ")";
        }
    }
}

